<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="usersList">
	<table border="0" cellspacing="2" cellpadding="2" class="gbox" width="600px">
	<tr><td colspan="5" align="center">Forum: <b><xsl:value-of select="@forumtitle"/></b> (<xsl:value-of select="@total"/> utenti)</td></tr>
	<tr><td width="200px"></td><td></td><td width="200px"></td><td></td><td></td></tr>
	<xsl:for-each select="user">
	<tr>
	<td width="200px"><xsl:value-of select="@nick"/></td>
	<td width="20px">
	<xsl:if test='@send="0" and not(@nick)'>
	<img class="fakeA" src="./imgs/warning.gif" onmouseover="ShowTooltipRight('1warn');" onmouseout="HideTooltip('1warn');"></img>
	</xsl:if>
	</td>
	<td width="200px">
	<xsl:value-of select="@email"/></td>
	<td>
<xsl:choose>
	<xsl:when test='@send="0"'>
	<a href="{/usersList/@baseUrl}forumManage.aspx?forumid={/usersList/@forumid}&amp;affectNick={@nick}&amp;affectEmail={@email}&amp;sendAs=1" class="body_10px_red">Attiva inoltro messaggi anche come email</a>
	</xsl:when>
	<xsl:otherwise>
	<a href="{/usersList/@baseUrl}forumManage.aspx?forumid={/usersList/@forumid}&amp;affectNick={@nick}&amp;affectEmail={@email}&amp;sendAs=0" style="font-family:tahoma;font-size:8pt;color:Blue;">Disattiva inoltro messaggi anche come email</a>
	</xsl:otherwise>
</xsl:choose>
	</td>
	<td><a href="{/usersList/@baseUrl}forumManage.aspx?forumid={/usersList/@forumid}&amp;affectNick={@nick}&amp;affectEmail={@email}&amp;deleteUser=1" class="body_10px_red">Elimina utente</a></td>
	</tr>
	</xsl:for-each>
	<tr><td width="200px"></td><td></td><td width="200px"></td><td></td><td></td></tr>
	<tr>
		<form name="addUser2Forum" method="post" action="{@baseUrl}forumManage.aspx?forumid={@forumid}">
		<td colspan="5" align="center">
		<input type="submit" name="SB{@ID}" value="Aggiungi un utente"></input>
		<input type="hidden" name="actiontype" value="1"></input>
		<input type="hidden" name="forumid" value="{@forumid}"></input>
		</td>
		</form>
	</tr>
	</table>
<DIV CLASS="reminderTooltip" style="width:215;" ID='tt1warn'>
Guarda che se non attivi l'inoltro anche con email gli utenti che non sono registrati non potranno leggere i messaggi del forum!
</DIV>
</xsl:template>


</xsl:stylesheet>